﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Reflection;
using System.Data;
using System.Collections;

public partial class data_payservice : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        string methodName = Request["method"];
        if (string.IsNullOrEmpty(methodName)) return;
        Type type = this.GetType();
        MethodInfo method = type.GetMethod(methodName);
        method.Invoke(this, null);
    }


//保存服务订单
    public void SavePay() {
        string data = Request["data"];
        Hashtable ht = new Hashtable();
        ArrayList json = (ArrayList)JSON.Decode(data);
        //ht = (Hashtable)JSON.Decode(data);
        string flag = new sql().SavePay(json);
        Response.Write(flag);
    }
//获取
    public void GetPayInfo() {
        DataTable dt = new sql().GetPayInfo();
        string json = JSON.Encode(dt);
        Response.Write(json);
    }
}